package com.training1.core.dto;

import java.math.BigDecimal;
import java.util.Date;

import com.training1.core.common.enums.EnumUtils;
import com.fasterxml.jackson.annotation.JsonFormat;

public class TreeNodeDto {

	private Integer id;

	private int nodeIndex;
	
	private int wellIndex;
	
	private int viewIndex;
	
	private String personName;
	
	private String recommendName;

	private int level;

	@JsonFormat(pattern="yyyy-MM-dd",timezone="GMT+8")
	private Date enterATime;
	
	private String cellphone;
	
	private Integer nodeType;
	
	private BigDecimal reward1;
	
	private BigDecimal reward2;
	
	private BigDecimal reward3;
	
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public int getNodeIndex() {
		return nodeIndex;
	}

	public void setNodeIndex(int nodeIndex) {
		this.nodeIndex = nodeIndex;
	}

	public int getWellIndex() {
		return wellIndex;
	}

	public void setWellIndex(int wellIndex) {
		this.wellIndex = wellIndex;
	}

	public int getViewIndex() {
		return viewIndex;
	}

	public void setViewIndex(int viewIndex) {
		this.viewIndex = viewIndex;
	}

	public String getPersonName() {
		return personName;
	}

	public void setPersonName(String personName) {
		this.personName = personName;
	}

	public String getRecommendName() {
		return recommendName;
	}

	public void setRecommendName(String recommendName) {
		this.recommendName = recommendName;
	}

	public int getLevel() {
		return level;
	}

	public void setLevel(int level) {
		this.level = level;
	}
	
	public String getPName(){
		return personName;
	}

	public Date getEnterATime() {
		return enterATime;
	}

	public void setEnterATime(Date enterATime) {
		this.enterATime = enterATime;
	}

	public String getCellphone() {
		return cellphone;
	}

	public void setCellphone(String cellphone) {
		this.cellphone = cellphone;
	}

	public Integer getNodeType() {
		return nodeType;
	}

	public void setNodeType(Integer nodeType) {
		this.nodeType = nodeType;
	}
	
	public String getNodeTypeStr(){
		if(nodeType==null){
			return "-";
		}
		return EnumUtils.getEnumLabel("Node", nodeType);
	}

	public BigDecimal getReward1() {
		return reward1;
	}

	public void setReward1(BigDecimal reward1) {
		this.reward1 = reward1;
	}

	public BigDecimal getReward2() {
		return reward2;
	}

	public void setReward2(BigDecimal reward2) {
		this.reward2 = reward2;
	}

	public BigDecimal getReward3() {
		return reward3;
	}

	public void setReward3(BigDecimal reward3) {
		this.reward3 = reward3;
	}
	
	
}
